Accusoft.OCRXpress.Java - Updated
Distributing OCR Xpress for Java
User Guide > Licensing & Distributing > Deployment / Distributing > Distributing OCR Xpress for Java

Regardless of your deployment model, the first step in deploying your application is to package the required OCR Xpress for Java runtime components.

The contents of the “Accusoft/OCRXpressJava<MajorVersion>-64/bin” directory of your OCR Xpress for Java installation are the OCR Xpress for Java runtime components. The following files are required for deployment:

Distributing with Maven

Accusoft hosts a public maven repository at http://mvn.accusoft.com that can be used to distribute the required dependencies. The samples include a POM file that uses this repository. In order to use this, first add the Accusoft repository to your list:

pom.xml
Copy Code
…
  <repositories>
    <repository>
      <releases>
        <enabled>true</enabled>
        <updatePolicy>always</updatePolicy>
        <checksumPolicy>warn</checksumPolicy>
      </releases>
      <snapshots>
        <enabled>false</enabled>
        <updatePolicy>never</updatePolicy>
        <checksumPolicy>fail</checksumPolicy>
      </snapshots>
      <id>accusoft-group</id>
      <name>Accusoft Maven Caching Proxy</name>
      <url>http://mvn.accusoft.com/</url>
      <layout>default</layout>
    </repository>
  </repositories>
…

Once the repository is added, the only two required dependencies can be added to the project:

pom.xml
Copy Code
…
  <dependencies>
    <dependency>
        <groupId>com.accusoft.ocrxpress</groupId>
        <artifactId>ocrxpressjava</artifactId>
        <version>4.0</version>
    </dependency>
    <dependency>
        <groupId>com.accusoft.ocrxpress</groupId>
        <artifactId>tessdata</artifactId>
        <version>2.0</version>
        <scope>runtime</scope>
    </dependency>
  </dependencies>
…

There are currently three available tessdata dependencies: